package com.yaowk.sfp.demo;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("demo-server")
@RequestMapping("/demo/server")
public interface DemoApi {

    @GetMapping("/api1")
    void api1Get();

    @PostMapping("/api1")
    String api1Post();

    @PutMapping("/api1")
    List<String> api1Put();
}
